package com.clarence.dada.modular.system.dict.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.clarence.dada.core.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 字典实体
 *
 * @author GD
 * @since  2020/12/26 22:37
 */
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dict")
@Data
public class SysDictEntity extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 字典id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long dictId;

    /**
     * 字典编码
     */
    @TableField("dict_code")
    private String dictCode;

    /**
     * 字典名称
     */
    @TableField("dict_name")
    private String dictName;

    /**
     * 字典类型的编码
     */
    @TableField("dict_type_code")
    private String dictTypeCode;

    /**
     * 字典简称
     */
    @TableField("dict_short_name")
    private String dictShortName;

    /**
     * 字典简称的编码
     */
    @TableField("dict_short_code")
    private String dictShortCode;

    /**
     * 排序，带小数点
     */
    @TableField("dict_sort")
    private BigDecimal dictSort;

    /**
     * 是否删除，Y-被删除，N-未删除
     */
    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    private String delFlag;

}
